package cn.tedu.mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    //商品列表：http://localhost:8091/page/item-list
    //修改商品请求：http://localhost:8091/page/item-edit
    //新增商品请求：http://localhost:8091/page/item-add
//    @RequestMapping("/page/item-list")
//   public String itemList(){
//        return "item-list";
//   }
//   @RequestMapping("/page/item-add")
//   public String itemAdd(){
//        return "item-add";
//   }
    @RequestMapping("/page/{moduleName}")
    public String module(@PathVariable String moduleName){
        return moduleName;
    }
}
